<template>
  <div style="padding: 10px">
    <d-button
      dialog
      :dialogProps="{ title: '提示', content: '确定点击吗' }"
      @confirm="confirm"
      @cancel="cancel">
      带弹出框
    </d-button>
  </div>
</template>
<script setup lang="ts">
  import { ElMessage } from 'element-plus'
  const confirm = () => {
    ElMessage({
      message: '确定',
      type: 'success'
    })
  }
  const cancel = () => {
    ElMessage({
      message: '取消',
      type: 'info'
    })
  }
</script>
